
package com.joysuch.wwyt.datadump.biz.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.zlg.common.datadump.annotation.DataDumpEntity;
import cn.zlg.common.datadump.annotation.DataDumpField;
import com.joysuch.wwyt.bp.entity.dsl.QBPNFCLocation;
import com.joysuch.wwyt.datadump.biz.query.BpNfcLocationDumpQueryBean;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@DataDumpEntity(name = "bp-nfc-location-dump", entity = QBPNFCLocation.class, exportQueryConditions = BpNfcLocationDumpQueryBean.class, businessName = "NFC卡")
@Data
public class BpNfcLocationDumpBean {

    @NotNull
    @Excel(name = "标签名称", width = 20)
    @DataDumpField(field = "name")
    private String name;

    @Excel(name = "识别码", width = 30)
    @Length(max = 64)
    @DataDumpField(field = "code", importKey = true)
    private String code;

}
